package LC;

import java.util.ArrayList;

/**
 * @ClassName LC114
 * @Description: TODO
 * @Author hl
 * @Date 2021/3/20
 * @Version V1.0
 **/
public class LC114 {
/*    public void flatten(TreeNode root) {
        ArrayList<TreeNode> list=new ArrayList<>();
        seach(root,list);
        for(int i=1;i<list.size();i++){
            TreeNode pre=list.get(i-1);
            TreeNode now=list.get(i);
            pre.left=null;
            pre.right=now;
        }
    }
    public void seach(TreeNode root,ArrayList<TreeNode> list){
       if(root==null) return;
       list.add(root);
       seach(root.left,list);
       seach(root.right,list);
    }*/
    public void flatten(TreeNode root) {

   }


}
